import { createApp } from 'vue'
import App from './App.vue'
import setupAssets from '@/plugins/assets'
import setupStore from '@/store/index'
import { setupRouter } from '@/router'
import 'virtual:svg-icons-register'

const app = createApp(App)

const setupPlugins = () => {
  setupAssets(app)
}

const setupApp = () => {
  setupStore(app)
  setupRouter(app)
  app.mount('#app')
}

setupPlugins()

setupApp()
